<script>
import Identity from '../../../config/Identity';
export default {
  data() {
    return {

    }
  },
  computed: {
    oauth() {
      return Identity.oauth2
    }
  },
  mounted() {
    //授权码模式
    if(this.oauth.response_type == 'code'){
      window.location.href = `${this.oauth.loginUrl}?client_id=${this.oauth.client_id}&scope=${this.oauth.scope}&response_type=${this.oauth.response_type}&redirect_uri=${this.oauth.redirect_uri}`
    }
  }
}
</script>

<style scoped lang='scss'>
</style>